import re

# 验证信息
def check_info(s,pattern):
    if re.match(pattern,s):
        return True
    else:
        return False